import { constant } from './constantRoutes'
import Layout from '@/layout/index.vue'

export const asyncRoutes = [
  {
    "id": 1,
    "name": "index1",
    "path": "/123",
    "title": "首页",
    "icon": null,
    "is_menu": 1,
    "auth_type": 1,
    "first_menu": 1,
    component: Layout,
    "children": [
      {
        "id": 2,
        "name": "dashboard1",
        "path": "dashboard",
        "title": "首页",
        "icon": null,
        "is_menu": 1,
        "auth_type": 1,
        "first_menu": 0,
        component: Layout,
      }
    ]
  },
  {
    "id": 4,
    "name": "login1",
    "path": "/login",
    "title": "登录",
    "icon": null,
    "is_menu": 1,
    "auth_type": 1,
    "first_menu": 1,
    component: Layout,
    "children": []
  },
  {
    "id": 11,
    "name": "ceshi1",
    "path": "/ceshi1",
    "title": "测试二层",
    "icon": null,
    "is_menu": 1,
    "auth_type": 1,
    "first_menu": 1,
    component: Layout,
    "children": []
  },
  {
    "id": 12,
    "name": "ceshi2",
    "path": "/ceshi2",
    "title": "测试三层",
    "icon": null,
    "is_menu": 1,
    "auth_type": 1,
    "first_menu": 1,
    component: Layout,
    "children": []
  },
  {
    "id": 13,
    "name": "ceshi3",
    "path": "/ceshi3",
    "title": "权限管理",
    "icon": null,
    "is_menu": 1,
    "auth_type": 1,
    "first_menu": 1,
    component: Layout,
    "children": [
      {
        "id": 14,
        "name": "menuMange1",
        "path": "menuMange1",
        "title": "菜单管理",
        "icon": null,
        "is_menu": 1,
        "auth_type": 1,
        "first_menu": 0,
        component: Layout,
        "children": [
          {
            "id": 16,
            "name": "menuMange3",
            "path": "menuMange3",
            "title": "修改权限",
            "icon": null,
            "is_menu": 1,
            "auth_type": 1,
            "first_menu": 0,
            component: Layout
          }
        ]
      },
      {
        "id": 15,
        "name": "menuMange2",
        "path": "menuMange2",
        "title": "用户管理",
        "icon": null,
        "is_menu": 1,
        "auth_type": 1,
        "first_menu": 0,
        component: Layout
      }
    ]
  }
]


export const constantRoutes = constant